package com.rowenci.iot_agriculture;

import com.rowenci.iot_agriculture.util.iot.RFIDThread;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;


@SpringBootApplication
public class IotAgricultureApplication {

    public static boolean state = true;

    public static void main(String[] args) {
        SpringApplication.run(IotAgricultureApplication.class, args);

        RFIDThread thread = new RFIDThread();
        thread.run();
        while (true){
            if (state == false){
                thread.run();
            }
        }
    }

}